package com.linewell.commom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.linewell.commom.dao.ICustJudgeDao;
import com.linewell.commom.model.CustJudge;
import com.linewell.commom.service.ICustJudgeService;

/**
 * 实现CommodityCategory接口方法 
 * 作者：蔡鹭佳 
 * 日期：2016/9/18
 */
@Service
public class CustJudgeServiceImpl implements ICustJudgeService {
	
	@Autowired
	private ICustJudgeDao custJudgeDao;

	@Override
	public List<CustJudge> find(Integer id) {
		
		List<CustJudge> lst = null;
		String hql = " from  CustJudge o where o.status = 9 and o.commodityId = " + id + " order by o.id desc ";
		lst = custJudgeDao.find(hql);
		
		return lst;
	}

	@Override
	public void save(CustJudge custJudge) {
		// TODO Auto-generated method stub
		custJudgeDao.save(custJudge);
	}

	
	
	
}
